package com.example.pwj.ffstudy.ui.zhihu.contract;

import com.example.pwj.ffstudy.base.BasePresenter;
import com.example.pwj.ffstudy.base.BaseView;
import com.example.pwj.ffstudy.bean.zdaily.ZDailyNews;
import com.example.pwj.ffstudy.bean.zdaily.ZDailyNewsSection;

import java.util.List;

import io.reactivex.Observable;

/**
 * Created by pwj on 2017/8/23.
 */

public interface ZNewsContract {
    interface Model {
        Observable<ZDailyNews> getZDailyNews(int dateCount);
    }

    interface View extends BaseView{
        void onLoadZDailyNews(List<ZDailyNewsSection> sections);

        void onLoadMoreZDailyNews(List<ZDailyNewsSection> sections);

        void onError();

        void onLoadMoreError();

        void onComplete();
    }

    interface Presenter extends BasePresenter<View>{
        void loadZDailyNews(boolean isLoadMore);
    }
}
